package net.underrealm.src;

import java.util.Scanner;

import net.underrealm.client.UnderRealm;

import org.ur_lwg.utils.Utils;

public class CommandLine {
	
	
	public CommandLine() {
		Scanner command = new Scanner(System.in);
		String[] c = command.next().split(" ");
		this.handleCommands(c);
			
	}
	
	public void handleCommands(String[] cmd) {
		if(cmd[0].equalsIgnoreCase("-s")) {
			ur.shutdown();
			Utils.println("Shutting Down");
		}
	}
	
	public UnderRealm ur;
}
